#!/bin/bash

# This file is part of the SHACrypt test suite and is licensed
# under the same license as SHACrypt.

# Description:
# Make a file with a null byte, then 1024 random bytes. Attempt
# to encrypt it with the password "test"

echo "Test 2: Encryption of random data"

./test-helper rand2.tmp

$SHACRYPT e test rand2.tmp f2.tmp
result=$?

rm -f rand2.tmp f2.tmp

exit $result